import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        name:'emp',
        path: '/',
        component: () => import('../views/emp/index.vue'),
    },
    /*{
        name:'dept',
        path: '/dept',
        component: () => import('../views/dept/index.vue'),
    }*/
]

const router = createRouter({
    history: createWebHashHistory(),// 开启历史模式
    routes
})

export default router